package com.zara.store.client.clientmodel;

import java.math.BigDecimal;

import com.zara.store.common.ProductVO;

public class PalcItemModel {
	
	ProductVO product;
	BigDecimal amount = BigDecimal.ZERO;
	BigDecimal amountSoldLastWeek = BigDecimal.ZERO;
	BigDecimal amountPendingOnLastPalc = BigDecimal.ZERO;
	boolean availableInOfad = false;

	public boolean getAvailableInOfad() {
		return availableInOfad;
	}
	public void setAvailableInOfad(boolean availableInOfad) {
		this.availableInOfad = availableInOfad;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public BigDecimal getAmountPendingOnLastPalc() {
		return amountPendingOnLastPalc;
	}
	public BigDecimal getAmountSoldLastWeek() {
		return amountSoldLastWeek;
	}
	public ProductVO getProduct() {
		return product;
	}
	public PalcItemModel(ProductVO product, BigDecimal amountSoldLastWeek, 
			BigDecimal amountPendingOnLastPalc) {
		super();
		this.product = product;
		this.availableInOfad = product.getSalePrice()!=null;
		this.amountSoldLastWeek = amountSoldLastWeek;
		this.amountPendingOnLastPalc = amountPendingOnLastPalc;
	}
	public PalcItemModel(ProductVO product) { //add forzado
		super();
		this.product = product;
	}

}
